<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="com.lgx.right.entity.User"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="<%=basePath %>style/base.css" type="text/css" rel="stylesheet" />
	<link href="<%=basePath %>style/shopping-cart.css" type="text/css" rel="stylesheet" /><!-- 购物车样式 -->
	<jsp:include page="/page/jsp/member/head.jsp" />
	
	<script type="text/javascript">
		function continueShop(){
			parent.window.location = path;
		}
		
		//管理订单跳转
		function address(){
			window.location = path+"/member/myOrderURL.htm";
		}
	</script>
  </head>
  
  <body>
  <div class="right">
  	<h1><b>订单信息</b><span><img src="<%=basePath%>images/right_h1bg2.jpg" width="3" height="29" /></span></h1>
	<div class="ri_main">
		<ol class="flow-steps">
			<c:choose>
				<c:when test="${order.status == 1}">
					<li class="s1 suc">购物车</li>
					<li class="s2 suc">确认订单信息</li>
					<li class="s3 cur">成功提交订单</li>
				</c:when>
				<c:when test="${order.status == 2}">
					<li class="s1 suc">确认订单信息</li>
					<li class="s2 suc">成功提交订单</li>
					<li class="s3 cur">已付款</li>
				</c:when>
				<c:when test="${order.status == 3}">
					<li class="s1 suc">成功提交订单</li>
					<li class="s2 suc">已付款</li>
					<li class="s3 cur">已发货</li>
				</c:when>
				<c:when test="${order.status == 4}">
					<li class="s1 suc">已付款</li>
					<li class="s2 suc">已发货</li>
					<li class="s3 cur">已确认</li>
				</c:when>
				<c:when test="${order.status == 7}">
					<li class="s1 suc">已发货</li>
					<li class="s2 suc">已确认</li>
					<li class="s3 cur">申请退货</li>
				</c:when>
				<c:when test="${order.status == 8}">
					<li class="s1 suc">已确认</li>
					<li class="s2 suc">申请退货</li>
					<li class="s3 cur">同意退货</li>
				</c:when>
				<c:when test="${order.status == 9}">
					<li class="s1 suc">已确认</li>
					<li class="s2 suc">申请退货</li>
					<li class="s3 cur">拒绝退货</li>
				</c:when>
				<c:when test="${order.status == 10}">
					<li class="s1 suc">已确认</li>
					<li class="s2 suc">申请退货</li>
					<li class="s3 cur">退货成功</li>
				</c:when>
				<c:otherwise>
				</c:otherwise>
			</c:choose>
		</ol>
	
  	<div class="order-info">
		<div class="hd"><strong class="hd-t">订单收货信息</strong></div>
		<table class="address-info">
			<tbody>
				<tr>
					<td class="th">订 单 号：</td>
					<td>${order.id}</td>
				</tr>
				<tr>
					<td class="th">收 件 人：</td>
					<td>${order.consigneeName}</td>
				</tr>
				<tr>
					<td class="th">联系电话：</td>
					<td>${order.consigneeTel}</td>
				</tr>
				<tr>
					<td class="th">收件人地址：</td>
					<td>${order.province} ${order.city} ${order.region} ${order.address}</td>
				</tr>
				<tr>
					<td class="th">邮政编码：</td>
					<td>${order.zipcode}</td>
				</tr>
			</tbody>
		</table>
	
		<div class="hd"><strong class="hd-t">订单详情</strong></div>
		<table class="order-details">
			<tbody>
				<tr>
					<td class="th">送货方式：</td>
					<td>快递</td>
				</tr>
				<tr>
					<td class="th">订单生成时间：</td>
					<td>${order.concludeTime()}</td>
				</tr>
				<tr>
					<td class="th">发货时间：</td>
					<td>${order.shipTime}</td>
				</tr>
				<tr>
					<td class="th">送货要求：</td>
					<td>只双休日、假日送货（工作日不用送）</td>
				</tr>
			</tbody>
		</table>
		
		<!-- S 商品清单 -->
		<div class="hd"><strong class="hd-t">商品清单</strong></div>
		<table class="shop-pro-list">
			<thead>
				<tr>
					<th>商品编号</th>
					<th>商品名称</th>
					<th>积分</th>
					<th>库存状态</th>
					<th>商品数量</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="list" items="${oDetails}">
					<tr>
						<td><a href="${list.entityUrl}" target="_blank">${list.entityId}</a></td>
						<td><a href="${list.entityUrl}" target="_blank">${list.entityName}</a></td>
						<td>${list.price}</td>
						<td>现货</td>
						<td>${list.amount}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<!-- E 商品清单 -->
		
		<div class="order-suc-act">
			<a href="javascript:void(0);" onclick="address()">管理我的订单</a>
			<a href="javascript:continueShop()">返回首页继续兑换物品</a>
			<c:if test="${order.status==1&&order.fareway=='1'}"><a href="#">继续支付订单</a></c:if>
		</div>
	 </div>
	</div>
</div>
  </body>
</html>
